import { cac } from "share/utils";

export const SET_FINANCE_AUDIT = "SET_FINANCE_AUDIT";
export const SET_FINANCE_PAYMENT = "SET_FINANCE_PAYMENT";
export const SET_FINANCE_BATCH = "SET_FINANCE_BATCH";
export const SET_FINANCE_VIEW = "SET_FINANCE_VIEW";
export const SET_FINANCE_AUDIT_PARAMS = "SET_FINANCE_AUDIT_PARAMS";
// 全局查看
export const SET_OVERALL_SUB_LIST = "SET_OVERALL_SUB_LIST";
// 餐厅全局查看
export const SET_OVERALL_RESTAURANT_LIST = "SET_OVERALL_RESTAURANT_LIST";
//借还框管理
export const SET_LOAN_AND_REFUND = "SET_LOAN_AND_REFUND";
// 报销单审批
export const SET_APPROVE_EXPENSE_REPORT = "SET_APPROVE_EXPENSE_REPORT";
//申请单审批
export const SET_APPROVE_REQUEST = "SET_APPROVE_REQUEST";
//借款单审批
export const SET_APPROVE_LOAN = "SET_APPROVE_LOAN";
//审批
export const SET_APPROVE = "SET_APPROVE";
//借款单审批快速查看已选项
export const SET_APPROVE_LOAN_SELECTED = "SET_APPROVE_LOAN_SELECTED";
//其他单审批
export const SET_APPROVE_OTHER = "SET_APPROVE_OTHER";
//其他单审批快速查看已选项
export const SET_APPROVE_OTHER_SELECTED = "SET_APPROVE_OTHER_SELECTED";
//申请单审批快速查看已选项
export const SET_APPROVE_REQUEST_SELECTED = "SET_APPROVE_REQUEST_SELECTED";
//申请单
export const SET_REQUEST = "SET_REQUEST";
//可用申请单
export const SET_MY_AVAIL_REQ_FORMS = "SET_MY_AVAIL_REQ_FORMS";
//申请单关闭
export const SET_REQUEST_CLOSE = "SET_REQUEST_CLOSE";
// 报销单
export const SET_EXPENSE_REPORT = "SET_EXPENSE_REPORT";
//报销单审批快速查看已选项
export const SET_EXPENSE_REQUEST_SELECTED = "SET_EXPENSE_REQUEST_SELECTED";
// 事务编码URL参数
export const SET_TAX_CODE_URL_RULE_ID = "SET_TAX_CODE_URL_RULE_ID";
// 设置所有币种信息(币种精度)
export const SET_ALL_CURRENCY = "SET_ALL_CURRENCY";
//订单管理
export const SET_ORDER_MANAGEMENT = "SET_ORDER_MANAGEMENT";
export const SET_BILL_LIST = "SET_BILL_LIST";
export const SET_LOAN_SEARCH = "SET_LOAN_SEARCH";
export const SET_PAY_SETTING = "SET_PAY_SETTING";
export const SET_EXTRA_SEARCH = "SET_EXTRA_SEARCH";
export const SET_SETOFBOOKS = "SET_SETOFBOOKS";
export const SET_PAT_WORKBENCH = "SET_PAY_WORKBENCH";
export const SET_BUDGET_BALANCE = "SET_BUDGET_BALANCE";
export const SET_BUDGET_BALANCE_QUERY = "SET_BUDGET_BALANCE_QUERY";
//新审批中相关
export const SET_WORKFLOW_APPROVER_TYPE = "SET_WORKFLOW_APPROVER_TYPE";
export const SET_WORKFLOW_ROLE_LIST = "SET_WORKFLOW_ROLE_LIST";
export const SET_WORKFLOW_DEPARTMENT_POSITION =
  "SET_WORKFLOW_DEPARTMENT_POSITION";

export const SET_INVOICE_MANAGE_TAB = "SET_INVOICE_MANAGE_TAB";
export const SET_REPORT_EXPANDED_ROW_KEYS = "SET_REPORT_EXPANDED_ROW_KEYS";
export const SET_REPORT_EXPANDED_ROW_POWERS = "SET_REPORT_EXPANDED_ROW_POWERS";
export const SET_CUSTOM_REPORT_MODAL_EXPANDED_ROW =
  "SET_CUSTOM_REPORT_MODAL_EXPANDED_ROW";

export const SET_INVOICE_CHECK_TAB = "SET_INVOICE_CHECK_TAB";
export const SET_EXPENSE_SETTING_TAB = "SET_EXPENSE_SETTING_TAB";

//设置集团模式下帐套的缓存
export const SET_DEFAULT_SET_OF_BOOK = "SET_DEFAULT_SET_OF_BOOK";
export const SET_BUDGET_ORGANIZATION_TAB = "SET_BUDGET_ORGANIZATION_TAB";

export const setFinanceAudit = cac(SET_FINANCE_AUDIT, "financeAudit");
export const setFinancePayment = cac(SET_FINANCE_PAYMENT, "financePayment");
export const setFinanceBatch = cac(SET_FINANCE_BATCH, "financeBatch");
export const setFinanceView = cac(SET_FINANCE_VIEW, "financeView");
export const setFinanceAuditParams = cac(SET_FINANCE_AUDIT_PARAMS, "financeAuditParams");
// 设置全局查看
export const setOverallSubList = cac(SET_OVERALL_SUB_LIST, "overallSubList");
// 设置餐厅全局查看
export const setOverallRestaurantList = cac(SET_OVERALL_RESTAURANT_LIST, "overallRestaurantList");
//设置借还框管理
export const setLoanAndRefund = cac(SET_LOAN_AND_REFUND, "loanAndRefund");
// 设置报销单审批
export const setApproveExpenseReport = cac(
  SET_APPROVE_EXPENSE_REPORT,
  "approveExpenseReport"
);
//设置申请单审批
export const setApproveRequest = cac(SET_APPROVE_REQUEST, "approveRequest");
//设置审批
export const setApprove = cac(SET_APPROVE, "approve");
//设置借款单审批
export const setApproveLoan = cac(SET_APPROVE_LOAN, "approveLoan");
//设置借款单审批快速查看已选项
export const setApproveLoanSelected = cac(
  SET_APPROVE_LOAN_SELECTED,
  "approveLoanSelected"
);
//设置其他单审批
export const setApproveOther = cac(SET_APPROVE_OTHER, "approveOther");
//设置其他单审批快速查看已选项
export const setApproveOtherSelected = cac(
  SET_APPROVE_OTHER_SELECTED,
  "approveOtherSelected"
);
//设置申请单审批快速查看已选项
export const setApproveRequestSelected = cac(
  SET_APPROVE_REQUEST_SELECTED,
  "approveRequestSelected"
);
//设置报销单审批快速查看已选项
export const setExpenseRequestSelected = cac(
  SET_EXPENSE_REQUEST_SELECTED,
  "expenseRequestSelected"
);
//设置申请单
export const setRequest = cac(SET_REQUEST, "request");
//设置可用申请单
export const setMyAvailReqForms = cac(
  SET_MY_AVAIL_REQ_FORMS,
  "myAvailReqForms"
);
//设置申请单关闭
export const setRequestClose = cac(SET_REQUEST_CLOSE, "requestClose");
// 设置报销单
export const setExpenseReport = cac(SET_EXPENSE_REPORT, "expenseReport");
// 设置所有币种信息(币种精度)
export const setAllCurrency = cac(SET_ALL_CURRENCY, "allCurrency");
//设置订单管理
export const setOrderManagement = cac(SET_ORDER_MANAGEMENT, "orderManagement");

export const setBillList = cac(SET_BILL_LIST, "billList");
//设置集团模式下帐套的缓存
export const setDefaultSetOfBook = cac(
  SET_DEFAULT_SET_OF_BOOK,
  "defaultSetOfBook"
);

export const setLoanSearch = cac(SET_LOAN_SEARCH, "loanSearch");

export const setPaySetting = cac(SET_PAY_SETTING, "paySetting");

export const setExtraSearch = cac(SET_EXTRA_SEARCH, "extraSearch");

export const setPayWorkbench = cac(SET_PAT_WORKBENCH, "payWorkbench");

export const setSetOfBooks = cac(SET_SETOFBOOKS, "setOfBooks");
//设置预算余额
export const setBudgetBalance = cac(SET_BUDGET_BALANCE, "budgetBalance");
//设置预算余额方案查询
export const setBudgetBalanceQuery = cac(
  SET_BUDGET_BALANCE_QUERY,
  "budgetBalanceQuery"
);

//审批流中存部门角色
export const setWorkflowApproverType = cac(
  SET_WORKFLOW_APPROVER_TYPE,
  "workflowApproverType"
);
export const setWorkflowRoleList = cac(
  SET_WORKFLOW_ROLE_LIST,
  "workflowRoleList"
);
export const setWorkflowDepartmentPosition = cac(
  SET_WORKFLOW_DEPARTMENT_POSITION,
  "workflowDepartmentPosition"
);
// 设置发票管控Tab
export const setInvoiceManageTab = cac(
  SET_INVOICE_MANAGE_TAB,
  "invoiceManageTab"
);
// 设置报表展开项
export const setReportExpandedRowKeys = cac(
  SET_REPORT_EXPANDED_ROW_KEYS,
  "reportExpandedRowKeys"
);
// 设置报表授权展开项
export const setReportExpandedRowPowers = cac(
  SET_REPORT_EXPANDED_ROW_POWERS,
  "reportExpandedRowPowers"
);
// 自定义报表数据模型管理展开项
export const setCustomReportModalExpandedRow = cac(
  SET_CUSTOM_REPORT_MODAL_EXPANDED_ROW,
  "customReportModalExpandedRow"
);
// 发票检验tab
export const setInvoiceCheckTab = cac(SET_INVOICE_CHECK_TAB, "invoiceCheckTab");
// 报销设置tab
export const setExpenseSettingTab = cac(
  SET_EXPENSE_SETTING_TAB,
  "expenseSettingTab"
);
// 预算日记账tab
export const setBudgetOrganizationTab = cac(
  SET_BUDGET_ORGANIZATION_TAB,
  "budgetOrganizationTab"
);
